import request from '@/router/axios';

// 生产管理分页条件查询列表
export const getProductionQueryPage = (query) => {
  return request({
    url: '/api/xmbz-order/order/getProductionTeaQueryPage',
    method: 'GET',
    params: query
  })
}

// 开始生产
export const singleStartProduction = (query) => {
  return request({
    url: '/api/xmbz-order/order/singleTeaStartProduction',
    method: 'POST',
    params: query
  })
}

// 批量生产
export const batchTeaStartProduction = (data) => {
  return request({
    url: '/api/xmbz-order/order/batchTeaStartProduction',
    method: 'post',
    data
  })
}

// 入库和批量入库
export const orderWarehousing = (query) => {
  return request({
    url: '/api/xmbz-order/order/orderTeaWarehousing',
    method: 'POST',
    params: query
  })
}

//蛋糕退回待生产
export const productionGoodsRollbackApi = (query) => {
  return request({
    url: '/api/xmbz-order/order/productionTeaGoodsRollback',
    method: 'POST',
    params: query
  })
}

// 打印和批量打印
export const orderTeaPrinting = (data) => {
  return request({
    url: '/api/xmbz-order/order/orderTeaPrinting',
    method: 'post',
    data
  })
}

// 打印和批量打印小票
export const orderTeaTicketPrinting = (data) => {
  return request({
    url: '/api/xmbz-order/order/orderTeaTicketPrinting',
    method: 'post',
    data
  })
}


// 记录打印
export const orderTeaPrintingFrequency = (data) => {
  return request({
    url: '/api/xmbz-order/order/orderTeaPrintingFrequency',
    method: 'post',
    data
  })
}
